package com.wanlian.dao;

import com.wanlian.common.PageCondition;
import com.wanlian.entity.Card;
import com.wanlian.entity.ProductCovertHistory;
import com.wanlian.entity.User;
import com.wanlian.model.ResultModel;
import com.wanlian.vo.Page;

public interface ProductCovertHistoryDao extends GenericDao<ProductCovertHistory> {

    /**
     *
     * @param card
     * @param user
     * @return
     */
    ResultModel addByCardandUser(Card card, User user);


    /**
     * 通过用户查询 商品兑换记录
     *
     * @param page
     * @param userId
     * @return
     */
    ResultModel queryHistoryByUser(Page page, int userId);


    /**
     * 查询 商品兑换记录
     *
     * @param pageCondition
     * @return
     */
    ResultModel queryHistoryByConditions(PageCondition pageCondition);

}
